/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package measure1;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 *
 * @author emarkki
 */
public class Data {

    
    public static final String certNordiRootCA = "files/NordicRootCA.cer";
    public static final String certScandinaviaRootCA = "files/ScandinaviaRootCA.cer";
    public static final String certSwissRootCA = "files/SwissRootCA.cer";
    
    /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet 0.3.1**
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Min User 1 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PSS
     *  Signature present: Yes
     * 
     * 741 bytes
     */
    public static final String msgSpUrlMinUser1SigRSASSAPSS = "files/msgSpUrlMinUser1SigRSASSAPSS.dat";
    
    
            
     /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet 0.3.1**
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Min User 1 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PSS
     *  Signature present: Yes
     * 
     * 741 bytes
     */
    public static final String msgSpUrlMinUser1SigRSAPKCS1 = "files/msgSpUrlMinUser1SigRSAPKCS1.dat";
    
    /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet 0.3.1**
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Min User 2 (2) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     * 
     * 789 bytes
     */
    public static final String msgSpUrlMinUser2SigDSA = "files/msgSpUrlMinUser2SigDSA.dat";
    
    
    /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet 0.3.1**
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Min User 3 (2) (ECDSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: ECDSA
     *  Signature present: Yes
     * 
     * 789 bytes
     */
    public static final String msgSpUrlMinUser3SigECDSA = "files/msgSpUrlMinUser3SigECDSA.dat";
    
    
    
    /** 
     * SmartPoster containing URL and Sig using ECDSA.
     * Created using SampleAppAMidlet 0.2-alpha
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Mora-Nisse (3) (ECDSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: ECDSA
     *  Signature present: Yes
     * 
     * 1883 bytes 
     *
     */
//    public static final String msgSpUrlMoraNisseChainSigECDSA = "files/msgSpUrlMoraNisseChainSigECDSA.dat";
    
    /** 
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet 0.3-alpha
     * 
     *  URI: http://www.dsa.se
     *  Certificate: Lars-Nils (4) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     * 
     * 3073 bytes 
     */
//    public static final String msgSpUrlLarsNilsChainSigDSA = "files/msgSpUrlLarsNilsChainSigDSA.dat";
    
    /** 
     * SmartPoster containing URL and Sig using RSA.
     * Created using SampleAppAMidlet 0.3.0-r2
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Anders B (RSA) (2)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PSS
     *  Signature present: Yes
     * 
     * 810 bytes 
     */
//    public static final String msgSpUrlAndersBChainSigRSASSAPSS = "files/msgSpUrlAndersBChainSigRSASSAPSS.dat";
    
    /** 
     * SmartPoster containing URL and Sig using RSA.
     * Created using SampleAppAMidlet 0.3.0-r2
     * 
     *  URI: http://www.ericsson.com
     *  Certificate: Anders B (RSA) (2)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PKCS1
     *  Signature present: Yes
     * 
     * 810 bytes 
     */
//    public static final String msgSpUrlAndersBChainSigRSASSAPKCS1 = "files/msgSpUrlAndersBChainSigRSASSAPKCS1.dat";
    
    /** 20 bytes */
    public static final byte[] certToDigestSHA1 = { 
        (byte) 138, 
        (byte) 18,         (byte) 183,         (byte) 5,         (byte) 144, 
        (byte) 46,         (byte) 75,         (byte) 151,         (byte) 107, 
        (byte) 93,         (byte) 147,         (byte) 73,         (byte) 38, 
        (byte) 72,         (byte) 121,         (byte) 214,         (byte) 191, 
        (byte) 147,         (byte) 77,         (byte) 152, 
    };

    /**
     * SmartPoster containing URL and Sig using RSASSA-PKCS1.
     * Created using SampleAppAMidlet rev 205
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: A User1 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PKCS1
     *  Signature present: Yes
     *
     * Message[643 bytes, 1 records] {
        Record(Sp, id=, payload=634 bytes) {
                Message[638 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=606 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 2
                                        Signature: 128 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 471 bytes
                                }
                        }
                }
            }
        }
     *  </pre>
     *
     * 643 bytes
     */
    public static final String msgSpUrlAUser1 = "files/spUrlAUser1.ndef";

    /**
     * SmartPoster containing URL and Sig using RSASSA-PKCS1.
     * Created using SampleAppAMidlet rev 205
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: A User2 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PKCS1
     *  Signature present: Yes
     *
     * <pre>
     * Message[510 bytes, 1 records] {
        Record(Sp, id=, payload=501 bytes) {
                Message[505 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=473 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 2
                                        Signature: 64 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 402 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 510 bytes
     */
    public static final String msgSpUrlAUser2 = "files/spUrlAUser2.ndef";



    /**
     * SmartPoster containing URL and Sig using RSASSA-PKCS1.
     * Created using SampleAppAMidlet rev 205
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: A User3 (2) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     *
     * <pre>
     * Message[842 bytes, 1 records] {
        Record(Sp, id=, payload=833 bytes) {
                Message[837 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=805 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 3
                                        Signature: 46 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 752 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 842 bytes
     */
    public static final String msgSpUrlAUser3 = "files/spUrlAUser3.ndef";

    /**
     * SmartPoster containing URL and Sig using RSASSA-PKCS1.
     * Created using SampleAppAMidlet rev 205
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: A User4 (2) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     *
     * <pre>
     * Message[641 bytes, 1 records] {
        Record(Sp, id=, payload=632 bytes) {
                Message[636 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=604 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 3
                                        Signature: 45 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 552 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 641 bytes
     */
    public static final String msgSpUrlAUser4 = "files/spUrlAUser4.ndef";

    /**
     * SmartPoster containing URL and Sig using RSASSA-PSS.
     * Created using SampleAppAMidlet rev 206
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: B User1 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PSS
     *  Signature present: Yes
     *
     * <pre>
     * Message[760 bytes, 1 records] {
        Record(Sp, id=, payload=751 bytes) {
                Message[755 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=723 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 1
                                        Signature: 128 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 588 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 760 bytes
     */
    public static final String msgSpUrlBUser1 = "files/spUrlBUser1.ndef";

    /**
     * SmartPoster containing URL and Sig using RSASSA-PSS.
     * Created using SampleAppAMidlet rev 206
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: B User2 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: RSASSA-PSS
     *  Signature present: Yes
     *
     * <pre>
     *  Message[628 bytes, 1 records] {
        Record(Sp, id=, payload=619 bytes) {
                Message[623 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=591 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 1
                                        Signature: 64 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 520 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 628 bytes
     */
    public static final String msgSpUrlBUser2 = "files/spUrlBUser2.ndef";

    /**
     * SmartPoster containing URL and Sig using ECDSA.
     * Created using SampleAppAMidlet rev 206
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: C User1 (2) (RSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: ECDSA
     *  Signature present: Yes
     *
     * <pre>
     * Message[400 bytes, 1 records] {
        Record(Sp, id=, payload=391 bytes) {
                Message[395 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=363 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 4
                                        Signature: 55 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 301 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 400 bytes
     */
    public static final String msgSpUrlCUser1 = "files/spUrlCUser1.ndef";

    /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet rev 206
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: D User1 (2) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     *
     * <pre>
     *Message[753 bytes, 1 records] {
        Record(Sp, id=, payload=744 bytes) {
                Message[748 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=716 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 3
                                        Signature: 46 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 663 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 753 bytes
     */
    public static final String msgSpUrlDUser1 = "files/spUrlDUser1.ndef";

    /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet rev 206
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: D User2 (2) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     *
     * <pre>
     * Message[461 bytes, 1 records] {
        Record(Sp, id=, payload=452 bytes) {
                Message[456 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=424 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 3
                                        Signature: 46 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 371 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 461 bytes
     */
    public static final String msgSpUrlDUser2 = "files/spUrlDUser2.ndef";

    /**
     * SmartPoster containing URL and Sig using DSA.
     * Created using SampleAppAMidlet rev 206
     * <pre>
     *  URI: http://www.ericsson.com
     *  Certificate: D User3 (2) (DSA)
     *  Certificate chain present: Yes
     *  Signature algorithm: DSA
     *  Signature present: Yes
     *
     * <pre>
     * Message[391 bytes, 1 records] {
        Record(Sp, id=, payload=382 bytes) {
                Message[386 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=354 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 3
                                        Signature: 46 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 301 bytes
                                }
                        }
                }
            }
        }
     * </pre>
     *
     * 391 bytes
     */
    public static final String msgSpUrlDUser3 = "files/spUrlDUser3.ndef";


    /**
     *
     * <pre>
     * Message[392 bytes, 1 records] {
        Record(Sp, id=, payload=383 bytes) {
                Message[387 bytes, 2 records] {
                        Record(U, id=00000001 , payload=13 bytes) {
                                http://www.ericsson.com
                        }
                        Record(Sig, id=, payload=355 bytes) {
                                Version: 1
                                Marker: false
                                Signature Field {
                                        Type: 4
                                        Signature: 56 bytes
                                }
                                Certificate Field {
                                        Format: 0
                                        URI: null
                                        Chain: 292 bytes
                                }
                        }
                }
            }
        }
      </pre>
     *
     * 392 bytes
     */
    public static final String msgSpUrlDUser4 = "files/spUrlDUser4.ndef";
    
    /** 696 bytes */
    public static final byte[] certToDigest = { 
        (byte) 48, 
        (byte) 130,         (byte) 2,         (byte) 180,         (byte) 48, 
        (byte) 130,         (byte) 1,         (byte) 156,         (byte) 160, 
        (byte) 3,         (byte) 2,         (byte) 1,         (byte) 2, 
        (byte) 2,         (byte) 6,         (byte) 1,         (byte) 28, 
        (byte) 245,         (byte) 131,         (byte) 194,         (byte) 149, 
        (byte) 48,         (byte) 13,         (byte) 6,         (byte) 9, 
        (byte) 42,         (byte) 134,         (byte) 72,         (byte) 134, 
        (byte) 247,         (byte) 13,         (byte) 1,         (byte) 1, 
        (byte) 5,         (byte) 5,         (byte) 0,         (byte) 48, 
        (byte) 110,         (byte) 49,         (byte) 11,         (byte) 48, 
        (byte) 9,         (byte) 6,         (byte) 3,         (byte) 85, 
        (byte) 4,         (byte) 6,         (byte) 19,         (byte) 2, 
        (byte) 83,         (byte) 69,         (byte) 49,         (byte) 28, 
        (byte) 48,         (byte) 26,         (byte) 6,         (byte) 3, 
        (byte) 85,         (byte) 4,         (byte) 10,         (byte) 12, 
        (byte) 19,         (byte) 83,         (byte) 119,         (byte) 101, 
        (byte) 100,         (byte) 101,         (byte) 110,         (byte) 32, 
        (byte) 79,         (byte) 114,         (byte) 103,         (byte) 97, 
        (byte) 110,         (byte) 105,         (byte) 122,         (byte) 97, 
        (byte) 116,         (byte) 105,         (byte) 111,         (byte) 110, 
        (byte) 49,         (byte) 40,         (byte) 48,         (byte) 38, 
        (byte) 6,         (byte) 3,         (byte) 85,         (byte) 4, 
        (byte) 11,         (byte) 12,         (byte) 31,         (byte) 83, 
        (byte) 119,         (byte) 101,         (byte) 100,         (byte) 105, 
        (byte) 115,         (byte) 104,         (byte) 32,         (byte) 67, 
        (byte) 101,         (byte) 114,         (byte) 116,         (byte) 105, 
        (byte) 102,         (byte) 105,         (byte) 99,         (byte) 97, 
        (byte) 116,         (byte) 105,         (byte) 111,         (byte) 110, 
        (byte) 32,         (byte) 65,         (byte) 117,         (byte) 116, 
        (byte) 104,         (byte) 111,         (byte) 114,         (byte) 105, 
        (byte) 116,         (byte) 121,         (byte) 49,         (byte) 23, 
        (byte) 48,         (byte) 21,         (byte) 6,         (byte) 3, 
        (byte) 85,         (byte) 4,         (byte) 3,         (byte) 12, 
        (byte) 14,         (byte) 83,         (byte) 119,         (byte) 101, 
        (byte) 100,         (byte) 101,         (byte) 110,         (byte) 32, 
        (byte) 82,         (byte) 111,         (byte) 111,         (byte) 116, 
        (byte) 32,         (byte) 67,         (byte) 65,         (byte) 48, 
        (byte) 30,         (byte) 23,         (byte) 13,         (byte) 48, 
        (byte) 56,         (byte) 49,         (byte) 48,         (byte) 49, 
        (byte) 51,         (byte) 48,         (byte) 57,         (byte) 50, 
        (byte) 50,         (byte) 52,         (byte) 53,         (byte) 90, 
        (byte) 23,         (byte) 13,         (byte) 49,         (byte) 48, 
        (byte) 48,         (byte) 49,         (byte) 50,         (byte) 49, 
        (byte) 48,         (byte) 57,         (byte) 50,         (byte) 50, 
        (byte) 52,         (byte) 54,         (byte) 90,         (byte) 48, 
        (byte) 49,         (byte) 49,         (byte) 17,         (byte) 48, 
        (byte) 15,         (byte) 6,         (byte) 3,         (byte) 85, 
        (byte) 4,         (byte) 3,         (byte) 12,         (byte) 8, 
        (byte) 65,         (byte) 110,         (byte) 100,         (byte) 101, 
        (byte) 114,         (byte) 115,         (byte) 32,         (byte) 66, 
        (byte) 49,         (byte) 15,         (byte) 48,         (byte) 13, 
        (byte) 6,         (byte) 3,         (byte) 85,         (byte) 4, 
        (byte) 10,         (byte) 12,         (byte) 6,         (byte) 83, 
        (byte) 119,         (byte) 101,         (byte) 100,         (byte) 101, 
        (byte) 110,         (byte) 49,         (byte) 11,         (byte) 48, 
        (byte) 9,         (byte) 6,         (byte) 3,         (byte) 85, 
        (byte) 4,         (byte) 6,         (byte) 19,         (byte) 2, 
        (byte) 83,         (byte) 69,         (byte) 48,         (byte) 92, 
        (byte) 48,         (byte) 13,         (byte) 6,         (byte) 9, 
        (byte) 42,         (byte) 134,         (byte) 72,         (byte) 134, 
        (byte) 247,         (byte) 13,         (byte) 1,         (byte) 1, 
        (byte) 1,         (byte) 5,         (byte) 0,         (byte) 3, 
        (byte) 75,         (byte) 0,         (byte) 48,         (byte) 72, 
        (byte) 2,         (byte) 65,         (byte) 0,         (byte) 157, 
        (byte) 64,         (byte) 185,         (byte) 243,         (byte) 161, 
        (byte) 61,         (byte) 26,         (byte) 255,         (byte) 255, 
        (byte) 182,         (byte) 20,         (byte) 184,         (byte) 108, 
        (byte) 52,         (byte) 211,         (byte) 93,         (byte) 40, 
        (byte) 179,         (byte) 50,         (byte) 21,         (byte) 143, 
        (byte) 112,         (byte) 34,         (byte) 18,         (byte) 201, 
        (byte) 145,         (byte) 10,         (byte) 243,         (byte) 252, 
        (byte) 23,         (byte) 25,         (byte) 42,         (byte) 99, 
        (byte) 117,         (byte) 64,         (byte) 63,         (byte) 187, 
        (byte) 132,         (byte) 253,         (byte) 99,         (byte) 148, 
        (byte) 55,         (byte) 32,         (byte) 87,         (byte) 183, 
        (byte) 255,         (byte) 44,         (byte) 50,         (byte) 161, 
        (byte) 35,         (byte) 160,         (byte) 192,         (byte) 188, 
        (byte) 58,         (byte) 69,         (byte) 251,         (byte) 82, 
        (byte) 22,         (byte) 212,         (byte) 80,         (byte) 174, 
        (byte) 90,         (byte) 141,         (byte) 35,         (byte) 2, 
        (byte) 3,         (byte) 1,         (byte) 0,         (byte) 1, 
        (byte) 163,         (byte) 93,         (byte) 48,         (byte) 91, 
        (byte) 48,         (byte) 31,         (byte) 6,         (byte) 3, 
        (byte) 85,         (byte) 29,         (byte) 35,         (byte) 4, 
        (byte) 24,         (byte) 48,         (byte) 22,         (byte) 128, 
        (byte) 20,         (byte) 171,         (byte) 160,         (byte) 210, 
        (byte) 192,         (byte) 143,         (byte) 233,         (byte) 188, 
        (byte) 123,         (byte) 57,         (byte) 42,         (byte) 229, 
        (byte) 136,         (byte) 216,         (byte) 26,         (byte) 169, 
        (byte) 206,         (byte) 17,         (byte) 253,         (byte) 36, 
        (byte) 45,         (byte) 48,         (byte) 29,         (byte) 6, 
        (byte) 3,         (byte) 85,         (byte) 29,         (byte) 14, 
        (byte) 4,         (byte) 22,         (byte) 4,         (byte) 20, 
        (byte) 134,         (byte) 177,         (byte) 15,         (byte) 84, 
        (byte) 50,         (byte) 186,         (byte) 247,         (byte) 64, 
        (byte) 96,         (byte) 149,         (byte) 48,         (byte) 80, 
        (byte) 105,         (byte) 208,         (byte) 18,         (byte) 188, 
        (byte) 84,         (byte) 210,         (byte) 239,         (byte) 14, 
        (byte) 48,         (byte) 14,         (byte) 6,         (byte) 3, 
        (byte) 85,         (byte) 29,         (byte) 15,         (byte) 1, 
        (byte) 1,         (byte) 255,         (byte) 4,         (byte) 4, 
        (byte) 3,         (byte) 2,         (byte) 5,         (byte) 160, 
        (byte) 48,         (byte) 9,         (byte) 6,         (byte) 3, 
        (byte) 85,         (byte) 29,         (byte) 19,         (byte) 4, 
        (byte) 2,         (byte) 48,         (byte) 0,         (byte) 48, 
        (byte) 13,         (byte) 6,         (byte) 9,         (byte) 42, 
        (byte) 134,         (byte) 72,         (byte) 134,         (byte) 247, 
        (byte) 13,         (byte) 1,         (byte) 1,         (byte) 5, 
        (byte) 5,         (byte) 0,         (byte) 3,         (byte) 130, 
        (byte) 1,         (byte) 1,         (byte) 0,         (byte) 18, 
        (byte) 170,         (byte) 178,         (byte) 26,         (byte) 149, 
        (byte) 183,         (byte) 188,         (byte) 40,         (byte) 98, 
        (byte) 215,         (byte) 46,         (byte) 111,         (byte) 122, 
        (byte) 73,         (byte) 47,         (byte) 84,         (byte) 200, 
        (byte) 96,         (byte) 3,         (byte) 155,         (byte) 194, 
        (byte) 93,         (byte) 54,         (byte) 222,         (byte) 58, 
        (byte) 127,         (byte) 6,         (byte) 145,         (byte) 147, 
        (byte) 50,         (byte) 150,         (byte) 179,         (byte) 4, 
        (byte) 249,         (byte) 216,         (byte) 209,         (byte) 160, 
        (byte) 98,         (byte) 86,         (byte) 176,         (byte) 193, 
        (byte) 74,         (byte) 143,         (byte) 143,         (byte) 90, 
        (byte) 149,         (byte) 168,         (byte) 160,         (byte) 74, 
        (byte) 158,         (byte) 62,         (byte) 15,         (byte) 96, 
        (byte) 160,         (byte) 182,         (byte) 53,         (byte) 228, 
        (byte) 72,         (byte) 201,         (byte) 178,         (byte) 133, 
        (byte) 172,         (byte) 221,         (byte) 109,         (byte) 203, 
        (byte) 218,         (byte) 253,         (byte) 174,         (byte) 5, 
        (byte) 59,         (byte) 137,         (byte) 132,         (byte) 24, 
        (byte) 120,         (byte) 131,         (byte) 241,         (byte) 27, 
        (byte) 49,         (byte) 202,         (byte) 225,         (byte) 49, 
        (byte) 238,         (byte) 186,         (byte) 154,         (byte) 217, 
        (byte) 191,         (byte) 102,         (byte) 100,         (byte) 62, 
        (byte) 190,         (byte) 231,         (byte) 179,         (byte) 104, 
        (byte) 124,         (byte) 50,         (byte) 254,         (byte) 220, 
        (byte) 61,         (byte) 162,         (byte) 59,         (byte) 140, 
        (byte) 185,         (byte) 232,         (byte) 137,         (byte) 244, 
        (byte) 58,         (byte) 193,         (byte) 218,         (byte) 132, 
        (byte) 171,         (byte) 247,         (byte) 97,         (byte) 27, 
        (byte) 9,         (byte) 146,         (byte) 240,         (byte) 207, 
        (byte) 106,         (byte) 37,         (byte) 159,         (byte) 23, 
        (byte) 174,         (byte) 112,         (byte) 128,         (byte) 85, 
        (byte) 197,         (byte) 75,         (byte) 24,         (byte) 189, 
        (byte) 12,         (byte) 21,         (byte) 122,         (byte) 26, 
        (byte) 66,         (byte) 222,         (byte) 238,         (byte) 219, 
        (byte) 161,         (byte) 66,         (byte) 5,         (byte) 192, 
        (byte) 1,         (byte) 194,         (byte) 148,         (byte) 157, 
        (byte) 225,         (byte) 18,         (byte) 67,         (byte) 195, 
        (byte) 227,         (byte) 154,         (byte) 62,         (byte) 109, 
        (byte) 228,         (byte) 30,         (byte) 160,         (byte) 16, 
        (byte) 206,         (byte) 187,         (byte) 164,         (byte) 225, 
        (byte) 106,         (byte) 240,         (byte) 70,         (byte) 200, 
        (byte) 221,         (byte) 91,         (byte) 81,         (byte) 103, 
        (byte) 180,         (byte) 20,         (byte) 228,         (byte) 35, 
        (byte) 70,         (byte) 201,         (byte) 127,         (byte) 226, 
        (byte) 41,         (byte) 231,         (byte) 103,         (byte) 190, 
        (byte) 62,         (byte) 123,         (byte) 161,         (byte) 112, 
        (byte) 28,         (byte) 108,         (byte) 162,         (byte) 122, 
        (byte) 167,         (byte) 195,         (byte) 232,         (byte) 86, 
        (byte) 54,         (byte) 102,         (byte) 201,         (byte) 134, 
        (byte) 246,         (byte) 79,         (byte) 16,         (byte) 54, 
        (byte) 205,         (byte) 146,         (byte) 182,         (byte) 67, 
        (byte) 51,         (byte) 234,         (byte) 176,         (byte) 214, 
        (byte) 201,         (byte) 248,         (byte) 165,         (byte) 67, 
        (byte) 40,         (byte) 177,         (byte) 164,         (byte) 205, 
        (byte) 71,         (byte) 36,         (byte) 6,         (byte) 62, 
        (byte) 13,         (byte) 188,         (byte) 151,         (byte) 183, 
        (byte) 38,         (byte) 166,         (byte) 23,         (byte) 137, 
        (byte) 101,         (byte) 70,         (byte) 179,         (byte) 143, 
        (byte) 180,         (byte) 237,         (byte) 164,         (byte) 10, 
        (byte) 198,         (byte) 105,         (byte) 241,         (byte) 70, 
        (byte) 104,         (byte) 188,         (byte) 106,         (byte) 182, 
        (byte) 183,         (byte) 116,         (byte) 204,         (byte) 68, 
        (byte) 248,         (byte) 175,         (byte) 176,         (byte) 200, 
        (byte) 64,         (byte) 45,         (byte) 213, 
    };

    
    public static byte[] readBinaryFile(String fileName) throws IOException {
            
            InputStream in = Data.class.getResourceAsStream(fileName);
            
            if(in == null) {
                throw new IOException("No such file: " + fileName); // Note: Do not obfuscate this class!
            }
            
            ByteArrayOutputStream out = new ByteArrayOutputStream(1024);

            byte[] buffer = new byte[512];

            int ch;
            while ((ch = in.read(buffer)) > 0) {
                out.write(buffer, 0, ch);
            }
            in.close();

            return out.toByteArray();
    }
    
}
